<%@taglib prefix="s" uri="/struts-tags" %>

<div class="post">
    <h2 class="title"><a href="#">Account Summary</a></h2>

    <div class="entry"><br/>
        <span class="style3">Chequing/Savings Accounts</span><br/>
        <br/>
        <table width="601" border="0" cellspacing="3" bgcolor="#FFFFFF">
            <tr>
                <td width="156" bgcolor="#333333"><span class="style1 style5">Account number</span></td>
                <td width="153" bgcolor="#333333"><span class="style1 style5">Account Name/Type</span></td>
                <td width="107" bgcolor="#333333"><span class="style1 style5">Acount currency</span></td>
                <td width="76" bgcolor="#333333"><span class="style1 style5">Balance </span></td>
                <td width="81" bgcolor="#333333"><span class="style1 style5">Date as of</span></td>
            </tr>
            <s:iterator value="savingsAccounts" status="counter">
            <tr>
                <td><s:property value="id"/></td>
                <td><s:property value="type"/></td>
                <td>LKR</td>
                <td><s:property value="balance"/></td>
                <td><s:property value="getToday()"/></td>
            </tr>
            </s:iterator>

            </table>

            <p>&nbsp;</p>

            <s:if test="loanAccounts.size() > 0">

            <p><span class="style3">Loan/Mortgage Accounts</span></p>

            <table width="601" border="0" cellspacing="3">
                <tr>
                    <td bgcolor="#333333"><span class="style1 style5">Account number</span></td>
                    <td bgcolor="#333333"><span class="style1 style5">Account Name/Type</span></td>
                    <td bgcolor="#333333"><span class="style1 style5">Acount currency</span></td>
                    <td bgcolor="#333333"><span class="style1 style5">Balance </span></td>
                    <td bgcolor="#333333"><span class="style1 style5">Date as of</span></td>
                </tr>

                <s:iterator value="loanAccounts" status="counter">
                    <tr>
                        <td><s:property value="id"/></td>
                        <td><s:property value="type"/></td>
                        <td><s:property value="currency"/></td>
                        <td><s:property value="balance"/></td>
                        <td><s:property value="getToday()"/></td>
                    </tr>
                </s:iterator>

            </table>

            </s:if>
            <p/>

            <p><br/>
            </p>

            <p>&nbsp;</p>
    </div>
</div>